package com.study.zzedu.fragment.tab.discuss;


import android.content.Context;

import com.study.zzedu.base.BasePresenter;
import com.study.zzedu.http.OnResultListener;

public class DiscussPresenter extends BasePresenter<DiscussContract.IView> {

    private DiscussModel pwdModel;

    public DiscussPresenter() {
        this.pwdModel = new DiscussModel();
    }

    public void queryPostList(Context context,String courseCode) {
        pwdModel.queryPostList(context,courseCode, new OnResultListener() {
            @Override
            public void onSuccess(String result) {
                getView().getCourseContentData(result);
            }

            @Override
            public void onError(String error) {
                getView().showError(error);
            }
        });
    }

}
